home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 27.zip
/
BS1 part 27
/
Condo.V2.04_d2.adf
/
HelpFiles
/
Flow Control
< prev
next >
Wrap
Text File
|
1993-03-08
|
3KB
|
173 lines
V- Arg1 |arg1|
V- ArgCount |argcount|
C- Do |do|
C- Else |else|
C- ElseIf |elseif|
C- EndIf |endif|
C- EndLoop |endloop|
C- ExitLoop |exitloop|
C- ExitScript |exitscript|
C- If |if|
C- Loop |loop|
C- Quit |quit|
C- StopScript |stopscript|
C- Until |until|
C- While |while|
[E]
|arg1|
WT {Argument}=Arg1
PL This returns one of the arguments passed
PL to this script. Up to ten arguments may be
PL passed to a script, Arg1 thru Arg10.
PL
PT SEE ALSO:
BS ArgCount
PT .
ED
|argcount|
WT {Integer}=ArgCount
PL This returns the number of arguments that
PL were passed to this script. This could be
PL anything from Zero(0) to Ten(10).
PL
PT SEE ALSO:
BS Arg1
PT .
ED
|do|
WT Do {RoutineName} [,{Arg1} [,up to ten arguments]]
PL Performs the routine created using the
PL Routine Object. The routine can use the
PL optional Arguments as incoming data. See
PL the manual for a full description of this
PL command.
ED
|else|
WT Else
PT Used with the
BS If
PL command.
ED
|elseif|
WT ElseIf {Logical}
PT Used with the
BS If
PL command.
PL
PL This allows you to have multiple exclusive
PL true code blocks.
ED
|endif|
WT EndIf
PT Used with the
BS If
PL command.
ED
|endloop|
WT EndLoop
PL Can be used to mark the end of a looping
PL code block. This end marker will always
PL start the block of code over again.
PT
BS Loop
PL
PL ..code..
PL EndLoop
ED
|exitloop|
WT ExitLoop
PL This will abort a loop block and can only
PL be used within a loop block.
PL
PT SEE ALSO:
BS Loop
PT ,
BS While
PT and
BS Until
PT .
ED
|exitscript|
WT ExitScript
PL This will abort the current script
PL executing. If the script was called
PL from another script then that script
PL will take over again.
ED
|if|
WT If {Logical}
PL This is used for condition flow control.
PL If {Logical}
PL ..code executed if {Logical} is true..
PT
BS Else
PL
PL ..code executed if {Logical} is false..
PT
BS EndIf
ED
|loop|
WT Loop
PL Can be used to mark the start of a looping
PL code block. This allows for repeating
PL blocks of code.
PL Loop
PL ..code..
PT
BS EndLoop
ED
|quit|
WT Quit
PL Allows the user to exit the presently
PL running Deck. If running under CanDo
PL this command will not work. However,
PL it will work if running as a separate
PL application.
ED
|stopscript|
WT StopScript
PT Similar to
BS ExitScript
PL , however, if it is
PL performed from a Routine, execution
PL will not continue in the calling script.
ED
|until|
WT Until {Logical}
PL Can be used to mark the end of a looping
PL code block. This end marker will loopback
PL only if the logical proves false
PT
BS Loop
PL
PL ..code..
PL Until TheLine=Nothing
ED
|while|
WT While {Logical}
PL Can be used to mark the start of a looping
PL code block. This allows for conditional
PL repeating blocks of code.
PL While Test<>15
PL ..code..
PT
BS EndLoop
ED